package com.haifeng.myapplication;

import android.content.Context;

import androidx.annotation.NonNull;
import androidx.startup.Initializer;

import java.util.ArrayList;
import java.util.List;

public class Sdk2Initalizer implements Initializer<SDKClient2> {
    @NonNull
    @Override
    public SDKClient2 create(@NonNull Context context) {
        SDKClient2.init(context);
        return SDKClient2.getInstance();
    }

    @NonNull
    @Override
    public List<Class<? extends Initializer<?>>> dependencies() {
        List<Class<? extends Initializer<?>>> dependencies=new ArrayList<>();
        dependencies.add(Sdk1Initalizer.class);
        return dependencies;
    }
}
